package com.songcha.module_bookreader.api

import com.songcha.module_bookreader.bean.QueryWordBean
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface BookApi {

      @FormUrlEncoded
      @POST("suggest")
      fun queryWord(@Field("q") word:String, @Field("num") num:Int=1,@Field("doctype") docType:String="json"): Observable<QueryWordBean>

}